package com.ssy.lingxi.member.merchant.model.vo.info.response;

import com.ssy.lingxi.common.constant.manage.ShopTypeEnum;
import com.ssy.lingxi.member.merchant.model.constant.MemberApplyButtonStatusEnum;

import java.io.Serializable;

/**
 * “申请会员” 页面 - 查询与会员的关系，显示按钮
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-12
 */
public class MemberInfoApplyButtonVO implements Serializable {
    private static final long serialVersionUID = 234244889407529514L;

    public MemberInfoApplyButtonVO(MemberApplyButtonStatusEnum statusEnum, ShopTypeEnum shopTypeEnum, Long validateId) {
        this.show = statusEnum.getShow();
        this.status = statusEnum.getCode();
        this.disabled = statusEnum.getDisabled();
        if (shopTypeEnum == ShopTypeEnum.PURCHASE) {
            this.value = statusEnum.getChannelShopMsg();
        } else {
            this.value = statusEnum.getMsg();
        }
        this.validateId = validateId;
    }

    /**
     * 是否显示按钮
     */
    private Boolean show;

    /**
     * 是否禁用按钮
     */
    private Boolean disabled;

    /**
     * 状态枚举：0-正常（继续申请流程），1-入库审核中，2-已入库审核通过，3-淘汰，4-黑名单, 5-不符合条件不能申请，6-不显示按钮
     */
    private Integer status;

    /**
     * “申请成为会员”按钮的文字
     */
    private String value;

    /**
     * 跳转查看会员详情页面所需要的参数，不能跳转的时候此值为0
     */
    private Long validateId;

    public Boolean getShow() {
        return show;
    }

    public void setShow(Boolean show) {
        this.show = show;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getValidateId() {
        return validateId;
    }

    public void setValidateId(Long validateId) {
        this.validateId = validateId;
    }
}
